package sis.report;

import sis.studentinfo.CourseSession;
import sis.studentinfo.DateUtil;
import sis.studentinfo.Student;
import junit.framework.TestCase;

public class RosterReporterTest extends TestCase {
	public void testRosterReport(){
		CourseSession session =
			CourseSession.create("ENGL", "101", DateUtil.createDate(2003, 1,6));
		
		session.enroll(new Student("A"));
		session.enroll(new Student("B"));
		
		String rosterReport = new RosterReporter(session).getReport();
		assertEquals(
				RosterReporter.ROSTER_REPORT_HEADER +
				"A" + RosterReporter.NEWLINE +
				"B" + RosterReporter.NEWLINE +
				RosterReporter.ROSTER_REPORT_FOOTER + "2" +
				RosterReporter.NEWLINE, rosterReport);
	}
}
